package club.cearnach.api.dao;

import club.cearnach.entity.District;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 阮胜
 * @date 2018/5/13 13:42
 */
public interface IDistrictDao extends JpaRepository<District, Integer> {
    District findByName(String name);

    District findByCode(Integer code);
}
